//
//  TipsViewController.m
//  HandheldHospital
//
//  Created by zhangchao on 16/3/2.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "TipsViewController.h"
#import <Masonry.h>

@interface TipsViewController ()<UITextViewDelegate>

@property(nonatomic,strong)UITextView *textViews;

@end

@implementation TipsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"就诊贴士";
    self.view.backgroundColor = [UIColor whiteColor];
    self.textViews = [[UITextView alloc] init];
    
//    self.textViews.textColor = [UIColor blackColor];//设置textview里面的字体颜色
    
    self.textViews.font = [UIFont fontWithName:@"Arial"size:16.0];//设置字体名字和字体大小
    
    self.textViews.delegate = self;//设置它的委托方法
    
    self.textViews.backgroundColor = [UIColor whiteColor];//设置它的背景颜色
    
    self.textViews.text = @" \n   1.挂号：很多患者只知道哪里不舒服，但并不清楚自己应该挂哪个科。挂不对号，不仅影响自己的就诊，也耽误了医生的时间。每个医院在门诊大厅都设有咨询台，如不清楚应该看哪个科，可在应用中咨询医生，他们会帮忙分诊，从而避免挂错号，耽误病情。\n\n    2. 就诊时间：请从应用'我的' -> '挂号订单'中查询到所找医生的出诊时间，避免就诊时出现所找医生不出诊情况。医院周六、周日是半天门诊，选择周末就医的上班族请合理安排时间。\n\n    3. 化验：一些化验单当天可能不会出结果，如果有化验结果的,请携带好化验结果就诊，节省就医时间。\n\n    4. 资料：已经做过的检查，请携带检查报告给医生做参考，避免重复检查。\n\n    5. 证件：带齐证件，身份证、医保卡一个都不能少，一般情况下医院就诊的流程都是，先要建卡，就是完善你的基本资料，身份证、医保卡就是基础信息。";//设置它显示的内容
    
    self.textViews.returnKeyType = UIReturnKeyDefault;//返回键的类型
    
    self.textViews.keyboardType = UIKeyboardTypeDefault;//键盘类型
    
    self.textViews.scrollEnabled = YES;//是否可以拖动
    
    self.textViews.editable = NO;//禁止编辑
    
    self.textViews.autoresizingMask = UIViewAutoresizingFlexibleHeight;//自适应高度

    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.view addSubview: self.textViews];//加入到整个页面中
    [self.textViews mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(10 + 64);
        make.bottom.offset(- 10);
        make.size.mas_offset(CGSizeMake(self.view.frame.size.width, self.view.frame.size.height - 84));
    }];

    
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
